const fs = require('fs');
const path = require('path');
const webpack = require('webpack');
const webpackMerge = require('webpack-merge');
const commonConfig = require('./webpack.common.js');

module.exports = webpackMerge(commonConfig, {
  devtool: 'inline-source-map',
  watch: true,
  // devServer: {
  //   publicPath: '/',
  //   contentBase: path.resolve('dist'),
  //   hot: true,
  //   compress: true,
  //   overlay: {
  //     warnings: false,
  //     errors: true
  //   },
  //   port: 4000,
  //   historyApiFallback: true
  // },
  // plugins: [
  //   new webpack.HotModuleReplacementPlugin(),
  // ]
});
